// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** listWorkSheetPreserve GET /worksheet-preserve */
export async function listWorkSheetPreserveUsingGET(options?: { [key: string]: any }) {
  return request<API.BaseResponseListWorkSheetPreserveDTO_>('/worksheet-preserve', {
    method: 'GET',
    ...(options || {}),
  });
}

/** editWorkSheetPreserve PUT /worksheet-preserve */
export async function editWorkSheetPreserveUsingPUT(
  body: API.EditWorkSheetPreserveQuery,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/worksheet-preserve', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** addWorkSheetPreserve POST /worksheet-preserve */
export async function addWorkSheetPreserveUsingPOST(
  body: API.AddWorkSheetPreserveQuery,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/worksheet-preserve', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteWorkSheetPreserve DELETE /worksheet-preserve */
export async function deleteWorkSheetPreserveUsingDELETE(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteWorkSheetPreserveUsingDELETEParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/worksheet-preserve', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
